package com.nervenets.general.enumeration;

/**
 * 限流类型
 *
 * @author Joe
 */
public enum LimitType implements Enums {
    DEFAULT("全局限流"),
    IP("根据IP限流"),
    USER("根据请求用户限流"),
    ;

    private final String text;

    LimitType(String text) {
        this.text = text;
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public String getValue() {
        return this.name();
    }
}
